package hcn.protocol.ods.newdiagnosis;/**
 * @Auther: Administrator
 * @Date: 2019/7/9 19:26
 * @Description:
 */


import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * @Author: zhusm@bsoft.com.cn
 *
 * @Description: 查询类型
 *
 * @Create: 2019-07-09 19:26
 **/
@NoArgsConstructor
@AllArgsConstructor
public enum QueryTypeEnum {
    PATIENTCODE(1,"患者标识查询"),PAPERWORK(2,"证件集合查询"),MEDICALCARD(3,"诊疗卡集合查询");
    private int code;
    private String description;

    public static final QueryTypeEnum getDescription(int code){
        for (QueryTypeEnum type : QueryTypeEnum.values()){
            if (type.getCode()==code){
                return type;
            }
        }
        return null;
    }

    public int getCode() {
        return code;
    }
}
